package com.cl.edu.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 文章栏目
 * Newssort entity. 
 * @author lihx
 */
@Entity
@Table(name = "newssort")
public class Newssort implements java.io.Serializable {

	// Fields

	private Long id; 		//栏目id
	private String name;	//栏目名称

	// Constructors

	/** default constructor */
	public Newssort() {
	}

	/** full constructor */
	public Newssort(String name) {
		this.name = name;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "name", length = 50)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

}